package cc.eddic.pratice.programmingparadigms.nginxlog;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

/**
 * Nginx 日志项
 */
@Getter
@ToString
@AllArgsConstructor
public class NginxLogItem implements UniqueVisitors {
    private String ip;
    private String time;
    private String request;
    private String status;
    private String bytes;
    private String referer;
    private String userAgent;

    @Override
    public String getUniqueVisitorKey() {
        return getIp() + "|||" + getUserAgent();
    }
}
